package top.kaoshanji.p4ch24d;

/**
 * 代码清单-p4ch24d-296页a：备忘录角色
 * @author kaoshanji
 * ^_^
 * create time 2025/3/26 21:29
 */
public class Memento {

    // 发起人的内部状态
    private String state = "";

    public Memento(String state) {
        this.state = state;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }
}
